package cn.quang.search.admin.mapper;


import cn.quang.search.admin.entity.po.SearchSceneInnerFetcherFieldConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:  Entity Generator
 * @since:  2024-03-08 19:25:08
 */
public interface SearchSceneInnerFetcherFieldConfigMapper extends BaseMapper<SearchSceneInnerFetcherFieldConfig> {

    @Select(
            " SELECT * FROM search_scene_inner_fetcher_field_config WHERE scene_inner_fetcher_config_id = #{innerFetcherConfigId} "
    )
    List<SearchSceneInnerFetcherFieldConfig> selectByInnerFetcherConfigId(@Param("innerFetcherConfigId") long innerFetcherConfigId);

    @Select(
            " SELECT * FROM search_scene_inner_fetcher_field_config WHERE field_dic_id = #{fieldDicId} "
    )
    List<SearchSceneInnerFetcherFieldConfig> selectByFieldDicId(@Param("fieldDicId") long fieldDicId);

    @Select(
            " SELECT * FROM search_scene_inner_fetcher_field_config WHERE inner_fetcher_field_dic_id = #{innerFetcherFieldDicId} "
    )
    List<SearchSceneInnerFetcherFieldConfig> selectByInnerFetcherFieldDicId(@Param("innerFetcherFieldDicId") long innerFetcherFieldDicId);
}
